﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ShowRecentNewsByCategoryUserControl.ascx.cs" Inherits="PepsiCo.Intranet.WebParts.ShowRecentNewsByCategory.ShowRecentNewsByCategoryUserControl" %>
<div class="box-container">
    <div class="box-header">
        <div class="uppercase box-title" style="float: left;">
            <%= ((System.Web.UI.WebControls.WebParts.WebPart)this.Parent).Title.ToString().Trim() != "" ? ((System.Web.UI.WebControls.WebParts.WebPart)this.Parent).Title.ToString().Trim() : ("Recent News: " + FilterNewsCategory)%>
        </div>
        <div class="clear-both">
        </div>
    </div>
    <div class="box-content">
        <ul class="recent-news-ul">
        <asp:Repeater ID="rptNews" runat="server">
            <ItemTemplate>
                <li class="recent-news-li">
                    <a href='<%# Eval("ViewUrl") %>' class="recent-news-title"><%# Eval("Title") %></a> 
                    <asp:PlaceHolder ID="PlaceHolder3" runat="server" Visible='<%# ShowDateTime %>'><span
                        class="wp-newslist-date"> (<%# Convert.ToDateTime(Eval("Created")).ToString(DateTimeFormat) %>)</span>
                    </asp:PlaceHolder>
                </li>
            </ItemTemplate>
        </asp:Repeater>
        </ul>
    </div>
</div>